<?php
/*
	
*/
defined('BY_JYA') or exit('Access Denied');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'reply';
$return=array();
set_html('title','嘉宾信息');
if($_RQ['op']=='reply'){
	
	if($_RQ['postdata']){
		$postdata=get_postdata();
		if(!$postdata['name']){
			exi('联系人姓名不能为空！','error');
		}
		if(!$postdata['image']){
			exi('图片不能为空！','error');
		}
		if(!$postdata['description']){
			exi('介绍不能为空！','error');
		} 
		$update=array(
			'name'=>$postdata['name'],
			'description'=>$postdata['description'],
			'image'=>trim($postdata['image']),
		);
		
		pdo_update('jy_h5game_fans',$update,array('fansId'=>$_SESSION['uid'],'uniacid'=>$_SESSION['uniacid'],'rid'=>$post['rid']));
		exi('发布成功','success');
		
	}
//	print_r($this->template_url('games/'.$item['fileName'].'/submit'));exit;
	$return['post']=array('rid'=>$id);
	$return['htmls']=$this->template_url('games/'.$item['fileName'].'/submit');
	exi($return);

}
